"use client"
import { useState } from "react";
export default function Template({ children }: { children: React.ReactNode }) {
    const [count, setCount] = useState(0);
    return <div class='template'>
         <h2>Dashboard Template:{count}</h2>
         <button class="bg-black text-white p-2 my-4"  onClick={() => setCount((prevCount) => prevCount + 1)}>+1</button>
        {children}
        </div>
  }